package com.rzico.basics.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * <pre>
 *   大转盘奖品数据库对象
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_turntable_prize")
public class TurntablePrize {

    @Id
    @ApiModelProperty
    protected Long id;

    @ApiModelProperty(value = "大转盘ID")
    protected Long turntableId;

    @ApiModelProperty(value = "奖品名称")
    protected String prizeName;

    @ApiModelProperty(value = "奖品描述")
    protected String description;

    @ApiModelProperty(value = "奖品价值")
    protected BigDecimal unitPrice;

    @ApiModelProperty(value = "奖品数量")
    protected Integer prizeNum;

    @ApiModelProperty(value = "剩余奖品数量")
    protected Integer prizeRemain;

    @ApiModelProperty(value = "排序")
    protected Integer sort;

    @ApiModelProperty(value = "状态")
    protected String status;

    @ApiModelProperty(value = "奖品类型")
    protected String prizeType;

    @ApiModelProperty(value = "奖品概率")
    protected BigDecimal probability;

    @ApiModelProperty(value = "优惠券ID")
    protected Long couponId;

    @ApiModelProperty(value = "优惠券信息")
    @JsonIgnore
    protected Coupon coupon;

    @ApiModelProperty(value = "是否属于中奖")
    protected Integer isWin;

}
